package cn.iocoder.yudao.module.book.controller.admin.bookshelfcatalogue.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 绘本分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BookShelfCatalogueRespVO {

    @Schema(description = "绘本目录表ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("绘本目录表ID")
    private Long id;

    @Schema(description = "分类名称")
    @ExcelProperty("分类名称")
    private String categoryName;

    @Schema(description = "1:英文书架 2:中文书架")
    @ExcelProperty(value = "1:英文书架 2:中文书架", converter = DictConvert.class)
    @DictFormat("category_name") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long type;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}